#!/bin/bash

cnpm install -g @vue/cli
:<<EOF
vue --version
@vue/cli 4.4.6
EOF

#快速原型
cnpm install -g @vue/cli-service-global
# vue serve test.vue 可以把直接查看

# vue ui 可以生成新的项目

yarn add element-ui
yarn add --dev vue-cli-plugin-element

# https://www.jianshu.com/p/8ba2cdbfabd7 vue-typescript入门
# dependencies
yarn add vue-svgicon@3.2.6 vue-class-component vue-property-decorator 
yarn add vuex-module-decorators vuex-class 
yarn add axios js-cookie normalize.css nprogress path-to-regexp
yarn add clipboard codemirror cors driver.js echarts file-saver fuse.js jsonlint jszip
 lodash morgan
yarn add screenfull script-loader sortablejs 
yarn add vue-count-to vue-image-crop-upload vue-splitpane vue2-dropzone vuedraggable
yarn add xlsx yamljs
yarn add register-service-worker

# devDependencies
yarn add --dev @types/js-cookie @types/node @types/nprogress @types/webpack-env
yarn add --dev @types/clipboard @types/codemirror @types/compression @types/cors @types/echarts 
yarn add --dev @types/express @types/faker @types/file-saver @types/lodash @types/morgan @types/sortablejs 
yarn add --dev @types/vue-splitpane @types/yamljs concurrently fibers 
# scss
yarn add --dev style-resources-loader vue-cli-plugin-style-resources-loader
#node-sass
#1
set SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
cnpm config set registry https://registry.npm.taobao.org
cnpm install -g node-sass@4.14.1
#2
set SASS_BINARY_PATH=$(pwd)/sass/linux-x64-83_binding.node
// 设置SASS_BINARY_PATH环境变量，告诉程序直接使用本地的.node文件，无需从网上下载
// 我的文件在C盘的soft_file文件夹下，所以路径是"c:\soft_file\"
echo ${SASS_BINARY_PATH}
// 如果输出地址，说明设置成功
cnpm install node-sass -g
